<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.teach.entity.User" %>
<!DOCTYPE html>
<html>
  <head>
    <title>系统提示</title>
	<jsp:include page="/admin/head.jsp"></jsp:include>
  </head>
  <body>
	<jsp:include page="/admin/header.jsp"></jsp:include>
	<jsp:include page="/admin/left-menu.jsp"></jsp:include>

    <section>

      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="admin/">管理首页</a></li>
          <li class="breadcrumb-item active" aria-current="page">系统提示</li>
        </ol>
      </nav>
	
	<% User user = (User)request.getAttribute("user"); %>
	 <form name="updateForm" action="admin/user-update.let" method="post">
	 <input type="hidden" name="userId" value="<%= user.getLlq_id() %>" /><!-- 隐藏的输入文本框 -->
	 <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>名字</label>
              <div class="col-sm-9">
                <input required="required" pattern="^[\u4100-\u9fa5]{2,8}$" name="userName" type="text" placeholder="由2到8个汉字组成"
                  title="由2到8个汉字组成" class="form-control" value="<%= user.getLlq_name() %>" />
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>年龄</label>
              <div class="col-sm-9">
                <input required="required" name="age" type="text" placeholder="由3到20个字符组成" title="由3到20个字符组成"
                  class="form-control" value="<%=user.getLlq_age() %>" />
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>出生日期</label>
              <div class="col-sm-9">
               <input type="date" name="userBrithdate"  class="form-control" style="width:auto;" value="<%= user.getLlq_birthday() %>"/>
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>性别</label>
              <div class="col-sm-9 pt-2">
               <label class="mr-2"><input type="radio" name="userSex" value="true" checked="checked">男</label> 
               <label class="mr-2"> <input type="radio" name="userSex" value="false">女</label>
              </div>
            </div>
            
             <div class="form-group row">
              <div class="col-sm-9 offset-sm-3">
                <button class="btn btn-primary" type="button" onclick="javascript:history.go(-1);">返回 </button>
                <button class="btn btn-danger" type="submit"><i class="fa fa-edit mr-2"></i>修改 </button>
              </div>
            </div>
 </form>
    </section>
    <jsp:include page="/admin/footer.jsp"></jsp:include>
  </body>
</html>
